<html>
<head>
<title>TestNG:  D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexTest.java</title>
<link href="../testng.css" rel="stylesheet" type="text/css" />
<link href="../my-testng.css" rel="stylesheet" type="text/css" />

<style type="text/css">
.log { display: none;} 
.stack-trace { display: none;} 
</style>
<script type="text/javascript">
<!--
function flip(e) {
  current = e.style.display;
  if (current == 'block') {
    e.style.display = 'none';
    return 0;
  }
  else {
    e.style.display = 'block';
    return 1;
  }
}

function toggleBox(szDivId, elem, msg1, msg2)
{
  var res = -1;  if (document.getElementById) {
    res = flip(document.getElementById(szDivId));
  }
  else if (document.all) {
    // this is the way old msie versions work
    res = flip(document.all[szDivId]);
  }
  if(elem) {
    if(res == 0) elem.innerHTML = msg1; else elem.innerHTML = msg2;
  }

}

function toggleAllBoxes() {
  if (document.getElementsByTagName) {
    d = document.getElementsByTagName('div');
    for (i = 0; i < d.length; i++) {
      if (d[i].className == 'log') {
        flip(d[i]);
      }
    }
  }
}

// -->
</script>

</head>
<body>
<h2 align='center'>D:/IdeaWorkspace/SeachEngine/test/hust/cs/javacourse/search/index/IndexTest.java</h2><table border='1' align="center">
<tr>
<td>Tests passed/Failed/Skipped:</td><td>10/0/0</td>
</tr><tr>
<td>Started on:</td><td>Sat Jun 26 16:49:17 CST 2021</td>
</tr>
<tr><td>Total time:</td><td>0 seconds (280 ms)</td>
</tr><tr>
<td>Included groups:</td><td></td>
</tr><tr>
<td>Excluded groups:</td><td></td>
</tr>
</table><p/>
<small><i>(Hover the method name to see the test class name)</i></small><p/>
<table width='100%' border='1' class='invocation-passed'>
<tr><td colspan='4' align='center'><b>PASSED TESTS</b></td></tr>
<tr><td><b>Test method</b></td>
<td width="30%"><b>Exception</b></td>
<td width="10%"><b>Time (seconds)</b></td>
<td><b>Instance</b></td>
</tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testAddDocument()'><b>testAddDocument</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: [Lhust.cs.javacourse.search.index.AbstractIndex;@628c4ac0, {"docId":1,"docPath":D:\IdeaWorkspace\SeachEngine/text/2.txt,<term:"activity",freq:1,curPos:0>,<term:"destination",freq:1,curPos:1>,<term:"emergency",freq:1,curPos:2>,<term:"capital",freq:1,curPos:7>,<term:"frozen",freq:1,curPos:9>,<term:"benefits",freq:1,curPos:10>,<term:"google",freq:1,curPos:11>,<term:"frozen",freq:1,curPos:14>,<term:"google",freq:1,curPos:15>}</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testGetDictionary()'><b>testGetDictionary</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, [activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testGetDocName()'><b>testGetDocName</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, [Ljava.lang.String;@7b84fcf8</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testLoad()'><b>testLoad</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, F:/java_demo_Search/Experiment1Test/test/config/..//index/index_1_2_3_txt.dat</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testOptimize()'><b>testOptimize</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testReadObject()'><b>testReadObject</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, F:/java_demo_Search/Experiment1Test/test/config/..//index/index_1_2_3_txt.dat</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testSave()'><b>testSave</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, F:/java_demo_Search/Experiment1Test/test/config/..//index/index_1_2_3_txt.dat</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testSearch()'><b>testSearch</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}
</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testTestToString()'><b>testTestToString</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, [Ljava.lang.String;@30b19518</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
<tr>
<td title='hust.cs.javacourse.search.index.IndexTest.testWriteObject()'><b>testWriteObject</b><br>Test class: hust.cs.javacourse.search.index.IndexTest<br>Parameters: dictionary: 
[activity, benefits, capital, destination, emergency, fizzy, frozen, google, marketplace, medical, notification, peninsula, pollution]
docId---->docPath Mapping: 
0  ---->  D:\IdeaWorkspace\SeachEngine\text\1.txt
1  ---->  D:\IdeaWorkspace\SeachEngine\text\2.txt
2  ---->  D:\IdeaWorkspace\SeachEngine\text\3.txt
Term---->PostingList: 
activity  -->  {"docId":0,"freq":3,"positions":[0, 1, 6]}->{"docId":1,"freq":1,"positions":[0]}

benefits  -->  {"docId":0,"freq":2,"positions":[2, 7]}->{"docId":1,"freq":1,"positions":[10]}

capital  -->  {"docId":0,"freq":2,"positions":[3, 8]}->{"docId":1,"freq":1,"positions":[7]}

destination  -->  {"docId":0,"freq":2,"positions":[4, 9]}->{"docId":1,"freq":1,"positions":[1]}

emergency  -->  {"docId":0,"freq":1,"positions":[10]}->{"docId":1,"freq":1,"positions":[2]}

fizzy  -->  {"docId":0,"freq":1,"positions":[5]}

frozen  -->  {"docId":1,"freq":2,"positions":[9, 14]}

google  -->  {"docId":1,"freq":2,"positions":[11, 15]}

marketplace  -->  {"docId":2,"freq":1,"positions":[0]}

medical  -->  {"docId":2,"freq":1,"positions":[1]}

notification  -->  {"docId":2,"freq":1,"positions":[3]}

peninsula  -->  {"docId":2,"freq":1,"positions":[5]}

pollution  -->  {"docId":2,"freq":1,"positions":[7]}
, F:/java_demo_Search/Experiment1Test/test/config/..//index/index_1_2_3_txt.dat</td>
<td></td>
<td>0</td>
<td>hust.cs.javacourse.search.index.IndexTest@1cab0bfb</td></tr>
</table><p>
</body>
</html>